package com.hotel.couponsystem.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (CouponStock)实体类
 *
 * @author makejava
 * @since 2022-09-30 15:32:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "coupon_stock")
public class CouponStock implements Serializable {
    private static final long serialVersionUID = -24418147817079206L;
    // 库存id
    @TableId
    private Integer stockId;
    /**
     * 优惠券编号
     */
    private String couponNo;
    /**
     * 优惠券名字
     */
    private String couponName;
    /**
     * 满减价格
     */
    private Double couponPrice;
    /**
     * 满多少钱才能减
     */
    private Double couponFullPrice;
    /**
     * 折扣
     */
    private Double couponDiscount;
    /**
     * 活动开始日期
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponStartDate;
    /**
     * 活动结束日期
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponEndDate;
    /**
     * 发布方
     */
    private Integer couponPublish;
    /**
     * 优惠券适用方
     */
    private Integer couponStatusNo;
    /**
     * 注意事项
     */
    private String couponAttention;
    /**
     * 优惠券使用状态
     */
    private Integer couponUseStatus;
    /**
     * 抢购状态
     */
    private Integer couponSnapupStatus;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 已发布
     */
    private Integer publishTotal;
    /**
     * 行锁
     */
    private Integer version;
    /**
     * 状态
     */
    private Integer state;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    /**
     * 备用字段01
     */
    private String standby01;
    /**
     * 备用字段02
     */
    private String standby02;

}

